-- GENERATED SPELL FOR [Coilfang Defender] --


function spell0_17958(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17958', 2296, 1)
end

function spell1_17958(pUnit, Event) --@Spell Reflection,Self--
pUnit:FullCastSpellOnTarget(31554,pUnit)
pUnit:RegisterEvent('Sorts_17958', 9000, 1)
end

function Sorts_17958(pUnit, Event)
local choix_sorts_17958 = math.random(0, 1)
if choix_sorts_17958 == 0 then
pUnit:RegisterEvent('spell0_17958', 1, 1)
end
if choix_sorts_17958 == 1 then
pUnit:RegisterEvent('spell1_17958', 1, 1)
end
end

function mob17958_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17958', math.random(1500, 3000), 1)
end

function mob17958_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17958_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17958_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17958, 1, 'mob17958_Action')
RegisterUnitEvent(17958, 2, 'mob17958_Leave')
RegisterUnitEvent(17958, 3, 'mob17958_Kill')
RegisterUnitEvent(17958, 4, 'mob17958_Die')
